package org.csmzxy.class2333;
class BankAccount {
    String accountNumber;  //账户
    double balance;        //余额
    public void broadcast(String accountNumber,double balance){
        System.out.println("账户" + accountNumber + "的余额为" + balance + "元");
    }
}
public class example03 {
        public static void main(String[] args) {
            BankAccount account = new BankAccount();
            account.accountNumber = "123456";
            account.balance = -500;  //直接修改账户余额
            account.broadcast(account.accountNumber,account.balance);
        }
    }

